package com.snacksmall.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.snacksmall.dao.IGoodsCategoryDao;
import com.snacksmall.dto.GoodsCategoryDto;
import com.snacksmall.model.Goods;
import com.snacksmall.model.GoodsCategory;
@Service
public class GoodsCategoryService implements IGoodsCategoryService {
	@Resource
	private IGoodsCategoryDao goodsCategoryDao;

	public List<GoodsCategory> queryGoodsCategoryAll(GoodsCategoryDto goodsCategoryDto) {
		// TODO Auto-generated method stub
		return goodsCategoryDao.queryGoodsCategoryAll(goodsCategoryDto);
	}

	public int countSum(GoodsCategoryDto goodsCategoryDto) {
		// TODO Auto-generated method stub
		return goodsCategoryDao.countSum(goodsCategoryDto);
	}
	
	public int addGoodsCategory(GoodsCategory goodsCategory) {
		// TODO Auto-generated method stub
		return goodsCategoryDao.addGoodsCategory(goodsCategory);
	}
	
	public int editGoodsCategory(GoodsCategory goodsCategory) {
		// TODO Auto-generated method stub
		return goodsCategoryDao.editGoodsCategory(goodsCategory);
	}

	public int delGoodsCategory(int categoryId) {
		// TODO Auto-generated method stub
		return goodsCategoryDao.delGoodsCategory(categoryId);
	}

}
